/**
 * $Id: CDPlayer.java,v 1.0 2016/11/23 14:52 jacky Exp $
 * <p/>
 * Copyright 2016 Asiainfo Technologies(China),Inc. All rights reserved.
 */
package com.ai.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author jacky
 * @version $Id: CDPlayer.java,v 1.1 2016/11/23 14:52 jacky Exp $
 * Created on 2016/11/23 14:52
 */
@Component
public class CDPlayer {
    private CompactDisc compactDisc;
    @Autowired
    public CDPlayer(CompactDisc compactDisc)
    {
        this.compactDisc=compactDisc;
    }
    public void play()
    {
        System.out.println(this.compactDisc.getName());
    }
}
